﻿<Window x:Class="KinkumaFramework.FSharp.HelloWorld.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:KinkumaFramework.FSharp.HelloWorld.ViewModel;assembly=KinkumaFramework.FSharp.HelloWorld.ViewModel"
        Title="HelloWorld Application" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:my="http://www.codeplex.com/prism" xmlns:my1="clr-namespace:Okazuki.MVVM.PrismSupport.Interactivity;assembly=Okazuki.MVVM.PrismSupport" SizeToContent="WidthAndHeight">
    <Window.DataContext>
        <vm:MainViewModel />
    </Window.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="391*" />
        </Grid.ColumnDefinitions>
        <i:Interaction.Triggers>
            <my:InteractionRequestTrigger SourceObject="{Binding Path=AlertRequest}">
                <my1:ShowMessageBoxAction />
            </my:InteractionRequestTrigger>
        </i:Interaction.Triggers>
        <TextBlock Name="textBlock1" Text="{Binding Path=Selected}" Grid.ColumnSpan="2" Grid.Row="1" />
        <TextBox Name="textBox1" Text="{Binding Path=Name, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" Grid.Column="1" Margin="5" Width="250" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" />
        <Label Content="名前：" Name="label1" Margin="5" />
        <StackPanel Grid.ColumnSpan="2" Grid.Row="2" Name="stackPanel1" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right">
            <Button Content="ダイアログ表示" Name="button1" Command="{Binding Path=AlertCommad}" Margin="5" />
        </StackPanel>
    </Grid>
</Window>
